/**
 * Created with IntelliJ IDEA.
 * User: skyline{http://my.oschina.net/skyline520}
 * Date: 12-11-18
 * Time: 下午4:18
 * To change this template use File | Settings | File Templates.
 */
Ext.define('Airways.view.system.operation.TopPanel',{
    extend:'Ext.panel.Panel',
    alias : 'widget.topPanel',
    iconCls:'grid',
    split:false,
    height:25,
    header:false,
    initComponent:function(){
        this.tbar = this.buildTbar();
        this.callParent(arguments);
    },
    buildTbar:function (){
        var addFlatMenuAction = Ext.create('Airways.view.system.operation.AddFlatMenuAction',{});
        var addChildMenuAction = Ext.create('Airways.view.system.operation.AddChildMenuAction',{});
        var editCurrentMenuAction = Ext.create('Airways.view.system.operation.EditCurrentMenuAction',{});
        var deleteCurrentMenuAction = Ext.create('Airways.view.system.operation.DeleteCurrentMenuAction',{});
        return [addFlatMenuAction,'-',addChildMenuAction,'-',editCurrentMenuAction,'-',deleteCurrentMenuAction];
    }

});
